package com.ruoyi.project.men.api;


import com.ruoyi.common.utils.bootdo.R;
import com.ruoyi.project.men.service.MenMapInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/***
 * 项目业绩
 */
@Controller
@RequestMapping("/api/map")
public class ApiMapController {

    @Autowired
    private MenMapInfoService menMapInfoService;

    /***
     *  世界地图
     * @return
     */
    @PostMapping( "/getMapInfo")
    @ResponseBody
    public R getMapInfo(){

        try{

            return  menMapInfoService.getMapInfo();
        }catch (Exception e){
            return R.error("服务器网络异常");
        }
    }

}
